// 前台路由

import NotFound from "./root/NotFound.vue"
import Main from "./root/main/a.vue"

import Password from "./root/app/password/a.vue"
import About from "./root/app/about/a.vue"

import Order from "./root/order/a.vue" // 订单收货
import Battery from "./root/battery/a.vue" // 电池收货
import BatteryScan from "./root/battery/scan/a.vue" // 电池扫描
import EntryRecognition from "./root/entry-recognition/a.vue" // 入厂识别
import ExitPermitScan from "./root/exit-permit-scan/a.vue" // 出门证扫描
import Coordination from "./root/coordination/a.vue" // 明细查询
import Receipt from "./root/receipt/a.vue" // 小票管理
import Detail from "./root/detail/a.vue" // 明细查询

import Stock from "./root/stock/a.vue" // 库存查询
import StockUsed from "./root/stock/used/a.vue" // 预占用详情

import Batch from "./root/batch/a.vue" // 物料批次查询
import State from "./root/state/a.vue" // 物料批次查询

import TrayStock from "./root/tray-stock/a.vue" // 器具库存查询

import StockMove from "./root/stock-move/a.vue" // 库内移动
import StockMoveScanMove from "./root/stock-move/scan-move/a.vue" // 扫描移库
import StockMovePack from "./root/stock-move/pack/a.vue" // 封存
import StockMoveUnpack from "./root/stock-move/unpack/a.vue" // 解封
import StockMoveMovePosition from "./root/stock-move/move-position/a.vue" // 仓位移动

import StockTaking from "./root/stock-taking/a.vue" // 盘点
import StockTakingDetail from "./root/stock-taking/detail/a.vue" // 盘点

import MissingPart from "./root/missing-part/a.vue" // 缺件查询
import Waste from "./root/waste/a.vue" // 料废业务
import Refund from "./root/refund/a.vue" // 退货业务
import DeliverByOrder from "./root/deliver-by-order/a.vue" // 按单发运
import ReceiveGoods from "./root/receive-goods/a.vue" // 收货查询

import MoveStock from "./root/move-stock/a.vue" // 移库管理
import MoveStockWhole from "./root/move-stock/whole/a.vue" // 整盘移库
import MoveStockNotWhole from "./root/move-stock/not-whole/a.vue" // 非整盘移库
import MoveStockNotPallet from "./root/move-stock/not-pallet/a.vue" // 非托盘移库

// ================================================================================
export default [
  // cordova
  { path: "/", component: Main },
  { path: "*/www/", component: Main },
  { path: "*/index.html", component: Main },
  // { path: "/index.html", component: Main },
  // { path: "/android_asset/www/index.html", component: Main },

  { path: "/app/password", component: Password },
  { path: "/app/about", component: About },

  { path: "/order", component: Order },
  { path: "/battery", component: Battery },
  { path: "/battery/scan", component: BatteryScan },
  { path: "/receipt", component: Receipt },
  { path: "/detail", component: Detail },

  { path: "/entry-recognition", component: EntryRecognition },
  { path: "/exit-permit-scan", component: ExitPermitScan },
  { path: "/coordination", component: Coordination },

  { path: "/stock", component: Stock },
  { path: "/stock/used", component: StockUsed },

  { path: "/batch", component: Batch },
  { path: "/state", component: State },

  { path: "/tray-stock", component: TrayStock },

  { path: "/stock-move", component: StockMoveScanMove },
  { path: "/stock-move/scan-move", component: StockMoveScanMove },
  { path: "/stock-move/pack-unpack", component: StockMovePack },
  { path: "/stock-move/unpack", component: StockMoveUnpack },
  { path: "/stock-move/move-position", component: StockMoveMovePosition },

  { path: "/stock-taking", component: StockTaking },
  { path: "/stock-taking/detail", component: StockTakingDetail },

  { path: "/missing-part", component: MissingPart },
  { path: "/waste", component: Waste },
  { path: "/refund", component: Refund },
  { path: "/deliver-by-order", component: DeliverByOrder },
  { path: "/receive-goods", component: ReceiveGoods },

  { path: "/move-stock", component: MoveStock },
  { path: "/move-stock/whole", component: MoveStockWhole },
  { path: "/move-stock/not-whole", component: MoveStockNotWhole },
  { path: "/move-stock/not-pallet", component: MoveStockNotPallet },

  { path: "*", component: NotFound },
]
